// 货物管理
import request from '@/utils/http'

// 数量录入
export function AddAmount (payload) {
  return request({
    url: '/v1/AddAmount',
    method: 'post',
    data: payload
  })
}

// 修改送电曲线
export function UpdateGoods (payload) {
  return request({
    url: 'v3/UpdateGoods',
    method: 'put',
    data: payload
  })
}

// 获取数据
export function GetAmount (payload) {
  return request({
    url: '/v2/GetAmount',
    method: 'get',
    params: payload
  })
}

// 获取数据
export function GetWeight (payload) {
  return request({
    url: '/v2/GetWeight',
    method: 'get',
    params: payload
  })
}
// 汇总表获取数据
export function GetSum (payload) {
  return request({
    url: '/v2/GetCargoSummary',
    method: 'get',
    params: payload
  })
}
